package com.tang.excel.oci.mapper;

import com.tang.excel.oci.domain.Exhaust;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Tang
 * @classname WarmWaterMapper
 * @description [  ]
 * @date 2021/5/20 15:49
 */
public interface ExhaustMapper {

    @Insert(value = {
            "<script>",
            "insert into exhaust values ",
            "<foreach item = 'item' collection = 'exhausts' separator = ','>",
            "(null ,#{item.name},#{item.value},#{item.saveDate},#{item.type} )",
            "</foreach>",
            "</script>"
    })
    void batchInsert(@Param("exhausts") List<Exhaust> exhausts);

}